package com.cola.ui;

import com.cola.bean.User;
import com.cola.service.UserServers;
import com.cola.service.UserServiceImpl;
import com.cola.utils.BussinessException;

/**
 * @Grup:com.cola.ui
 * @Auther:cola
 * @Data:2021/4/13-2021-04-19:38
 * @version:1.0
 */
public class RegisterClass extends BaseClass {
    public void register()throws BussinessException {
        println(getString("input.username"));
        String username=input.nextLine();
        println(getString("input.password"));
        String password=input.nextLine();
        User user = new User(username, password);
        UserServers userService = new UserServiceImpl();
        userService.register(user);
    }
}
